package com.yzhl.batch_sync.service;

import com.yzhl.batch_sync.mapper.aliyun.AliyunPassportMapper;
import com.yzhl.batch_sync.mapper.aliyun.AliyunStatisticsMapper;
import com.yzhl.batch_sync.mapper.mytest.PassportMapper;
import com.yzhl.batch_sync.mapper.mytest.StatisticsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wangzu
 * @date 2018/10/12
 */
@Service
public class SyncService extends BaseService {

    @Autowired
    PassportMapper passportMapper;
    @Autowired
    AliyunPassportMapper aliyunPassportMapper;

    @Autowired
    StatisticsMapper statisticsMapper;
    @Autowired
    AliyunStatisticsMapper aliyunStatisticsMapper;

    public void syncPassport() {
        syncData(passportMapper, aliyunPassportMapper);
    }

    public void syncStatistics() {
        syncData(statisticsMapper, aliyunStatisticsMapper);
    }


}
